home *** CD-ROM | disk | FTP | other *** search
- # test close routine
- #
- @include \mh\wind.mh
-
- # associated storage
- uchar x[1]
-
- riff openWindows()
- int wd
-
- # open DEFINE window, variable storage must be ??
- # DEFINE window, map a list of "labels", i.e., strings
- # to scalars. Upon input the topmost label is assigned
- # the value 0, to label n-1.
- # upX,upY
- # lowX,lowY
- # title string
- # nolabels = n, number of input strings
- # fieldsize = 0 must be 0
- # nofields = 0 must be 0
- # pointer to uchar array of size 1
- wd = inputWindow(WDEFINE, 10, 20, 14, 30, "section", 3, 0, 0, &x)
- # enter labels
- void windowLabel(wd, "Asection", 0)
- void windowLabel(wd, "Bsection", 1)
- void windowLabel(wd, "Csection", 2)
-
- # put up debug window to show changes
- end
-
- vco testit()
- int rval
- int index
- int wh
- int yoffset
-
- wh = outputWindow(WDEBUG,15,0,20,25,"printf") # halfway
- void openWindows()
- yoffset = 5
- for(index = 0; index < 7; index++)
- void printf("x = %d\n",x[0])
- void printf("x = %d\n",x[0])
- void printf("x = %d\n",x[0])
- void printf("x = %d\n",x[0])
- void printf("x = %d\n",x[0])
- void mgetch()
- void closeWindow(wh)
- void mgetch()
- wh = outputWindow(WDEBUG,15,1+yoffset,20,25+yoffset,"printf") # halfway
- yoffset = yoffset + 5
- end
- end
-
-